package com._21cn.cms.article.entity;

import java.io.Serializable;
import java.util.Date;

public class ArticlePicture implements Serializable {
	private static final long serialVersionUID = -1L;	
	
	private Integer id = 0;
	private Integer articleId = 0;
	private String picHashcode;
	private String picTitle;
	private String picMemo;
	private String picUrl;
	private Integer thumbPicFlag = 0;
	private Integer orderNum;
	private Integer status;
	private java.util.Date createTime = new Date();
	private Integer createUserId = 0;
	private java.util.Date modifyTime = new Date();
	private Integer modifyUserId = 0;

    public void setId(Integer id) {
        this.id = id;  
    }        
    public Integer getId() {  
        return this.id;  
    }  

    public void setArticleId(Integer articleId) {  
        this.articleId = articleId;  
    }        
    public Integer getArticleId() {  
        return this.articleId;  
    }  

    public void setPicHashcode(String picHashcode) {  
        this.picHashcode = picHashcode;  
    }        
    public String getPicHashcode() {  
        return this.picHashcode;  
    }  

    public void setPicTitle(String picTitle) {  
        this.picTitle = picTitle;  
    }        
    public String getPicTitle() {  
        return this.picTitle;  
    }  

    public void setPicMemo(String picMemo) {  
        this.picMemo = picMemo;  
    }        
    public String getPicMemo() {  
        return this.picMemo;  
    }  

    public void setPicUrl(String picUrl) {  
        this.picUrl = picUrl;  
    }        
    public String getPicUrl() {  
        return this.picUrl;  
    }  

    public void setThumbPicFlag(Integer thumbPicFlag) {  
        this.thumbPicFlag = thumbPicFlag;  
    }        
    public Integer getThumbPicFlag() {  
        return this.thumbPicFlag;  
    }  

    public void setOrderNum(Integer orderNum) {  
        this.orderNum = orderNum;  
    }        
    public Integer getOrderNum() {  
        return this.orderNum;  
    }  

    public void setStatus(Integer status) {  
        this.status = status;  
    }        
    public Integer getStatus() {  
        return this.status;  
    }  

    public void setCreateTime(java.util.Date createTime) {  
        this.createTime = createTime;  
    }        
    public java.util.Date getCreateTime() {  
        return this.createTime;  
    }  

    public void setCreateUserId(Integer createUserId) {  
        this.createUserId = createUserId;  
    }        
    public Integer getCreateUserId() {  
        return this.createUserId;  
    }  

    public void setModifyTime(java.util.Date modifyTime) {  
        this.modifyTime = modifyTime;  
    }        
    public java.util.Date getModifyTime() {  
        return this.modifyTime;  
    }  

    public void setModifyUserId(Integer modifyUserId) {  
        this.modifyUserId = modifyUserId;  
    }        
    public Integer getModifyUserId() {  
        return this.modifyUserId;  
    }

    /**
     *  初始化
     * @param a
     * @return
     */
    public ArticlePicture initWith( Article a ){
        this.articleId = a.getId();
        this.createTime = a.getCreateTime();
        this.modifyTime = a.getModifyTime();
        this.createUserId = a.getCreateUserId();
        return this;
    }
}